package com.zwy.fornote.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class ProjectConfig extends WebMvcConfigurerAdapter {

//    @Override
//    public void addCorsMappings(CorsRegistry registry) {
//        registry.addMapping("/**")
//                .allowedOrigins("http://127.0.0.1/:8080")  //允许的origin
//                .allowedMethods("GET", "POST", "DELETE") //允许的方法
//                .allowCredentials(true) //是否允许携带cookie
//                .maxAge(3600);
//    }
}
